
<a class="btn btn-primary single disabled" onclick="app_roleChoose()">
 <i class="${strutil.out(button.icon!,'fa fa-anchor')}"></i> ${button.name}
</a>

<script type="text/javascript">
var app_roleChoose = function() {
	var $grid = $('#grid_${object.id}');
	console.log('输入表格');
	console.log($grid);
    var rows = $grid.bootstrapTable('getSelections');
    var num = rows.length;
    if (num == "0") {
    	$.slideMsg("请选择一条记录！");
        return;
    }
    var rowid= rows[0]['id'];
    
    $.modal.openTab(rows[0].name +'权限分配' , '/rock/app/toAppRoleChoose/' + rows[0].id);
};
</script>